class simplyClassOne:
    
    def test(self):
        print "testOne"

class SimplyClassTwo():

    #class Field
    simplyClassOne = simplyClassOne()

    def test(self):
        print "testTwo"

class Kwadrat(SimplyClassTwo):

    simplyList = []

    #constructor init
    def __init__(self, x):
        self.kw = x
        self.simplyList.append(1)
        
    def pole(self):
        return self.kw**2

    #index operator override here
    def __getitem__(this, other):
        return this.simplyList[other]

    def __setitem__(this, a,b):
        this.simplyList[a] = b


a = Kwadrat(2)
print a.pole()
print a[0]
a[0] += 2 # convert to a[0] = a[0] + 2
print a[0]

Kwadrat.simplyClassOne.test()

####################################################################################v
class MyClass:
    pass

#new style class
class MyClass2(object):
    pass

myInstance = MyClass()

print type(MyClass)
print type(MyClass())

print type(MyClass2)
print type(MyClass2())





